﻿<UserControl x:Class="ucNewItem"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="125" d:DesignWidth="250">
    <Grid Background="WhiteSmoke" x:Name="MainGrid">
        <StackPanel>
            <Label Name="newItemTitle" Content="New Username"></Label>
            <StackPanel>
                <TextBox Height="23" Name="TextBoxNewUser" Width="auto" Margin="5" />
                <Label  Foreground="Red" Name="LabelError">
                    <Label.Content>
                        <Binding ElementName="LabelErrorx" Path="." />
                    </Label.Content>

                </Label>
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                <Button Content="OK" Height="23" Name="OkButton" Width="75" Margin="5" Background="White" />
                <Button Content="Cancel" Height="23" Name="CancelButton" Width="75" Margin="5" Background="White"/>
            </StackPanel>
            
        </StackPanel>
        <Control x:Name="busyAnimationNewUser" 
                 Visibility="Collapsed"
                 Style="{StaticResource BusyAnimationStyle}"
                 Width="{Binding Path=ActualWidth, ElementName=MainGrid}" 
                 Height="{Binding Path=ActualHeight, ElementName=MainGrid}" />
        
        
    </Grid>
</UserControl>
